var myChart = echarts.init(document.getElementById('show'));
var option = {
    title: {
        text: '个人绩效表(KPI)'
    },
    tooltip: {},
    legend: {
        //data: ['每月的绩效']
    },
    xAxis: {
        data: ['一月份', '二月份', '三月份',
            '四月份', '五月份', '六月份',
            '七月份', '八月份', '九月份',
            '十月份', '十一月份', '十二月份',]
    },
    yAxis: {},
    series: [{
        name: '每月绩效',
        type: 'line', //柱状图
        data: []
    }]
};
$.ajax({
    url: "/oa_system/view/",
    type: 'get',
    data: "",
    success: function (data) {
        console.log(data['kpi']);
        option['series'][0]['data'] = data['kpi'];
        myChart.setOption(option);
    },
    error: function (error) {
        console.log(error)
    }
});
